namespace classifier_test
{

class data_file_stream : public data_stream
{
public:
	data_file_stream();
	const record_scheme& get_scheme() const;
	void set_scheme(const record_scheme& Val);
	bool get_learn_scheme() const;
	void set_learn_scheme(bool Val);
	bool get_have_time() const;
	void set_have_time(bool Val);

	void open(const string& Filename, const string& Mode);
	void close();
	bool eof();
	void read(stream_record& Rec);
	void write(const stream_record& Rec);

private:
	record_scheme Scheme;
	bool LearnScheme;
	bool HaveTime;
	smart_file File;
	file_formatter Fmt;
	int Line;
	string Buffer;
};

}
